<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "itmontenegro";
$route['404_override'] = '';

/*PAGES*/
$route['(:any)/home'] = "itmontenegro/get_page"; 
$route['(:any)/rentacar-pro'] = "itmontenegro/get_platform/rentacar"; 
$route['(:any)/excursionstours-pro'] = "itmontenegro/get_platform/excursions"; 
$route['(:any)/accommodations-pro'] = "itmontenegro/get_platform/accommodations"; 
$route['(:any)/cms-pro'] = "itmontenegro/get_platform/cms"; 
$route['(:any)/terms-of-bussiness'] = "itmontenegro/get_terms";
$route['(:any)/notification_mail'] = "itmontenegro/notification_mail";

/*NEWS*/
$route['(:any)/news/(:any)'] =        "news/get_news/$2";

/*RENTACAR*/
$route['(:any)/browse_fleet']          = "rentacar/browse_fleet";
$route['(:any)/details']               = "rentacar/details";
$route['(:any)/getCarQuote']           = "rentacar/getCarQuote";
$route['(:any)/step_2']                = "rentacar/step_2";
$route['(:any)/step_3']                = "rentacar/step_3";
$route['(:any)/show_order']            = "rentacar/show_order";
$route['(:any)/set_accessories']      = "rentacar/set_accessories";
$route['(:any)/show_accessories/(:any)']      = "rentacar/show_accessories/$2";
$route['(:any)/show_terms']             = "rentacar/show_terms";
$route['(:any)/process_booking']       = "rentacar/process_booking";
$route['(:any)/rentacar/home'] =        "rentacar/home";

/*EXCURSIONS*/
$route['(:any)/excursions'] = "excursions_demo/get_all";
$route['(:any)/excursions/(:any)'] = "excursions_demo/details/$2";
$route['(:any)/client/book_now'] = "excursions_demo/book_now/$2";
$route['(:any)/client/(:any)'] = "excursions_demo/check_available/$2";
$route['(:any)/customer/(:any)'] = "excursions_demo/customer/$2";
$route['(:any)/booking/(:any)'] = "excursions_demo/booking/$2"; 

// example: '/en/about' -> use controller 'about'
$route['^me/(.+)$'] = "$1";
$route['^ru/(.+)$'] = "$1";
$route['^en/(.+)$'] = "$1";
$route['^de/(.+)$'] = "$1";
$route['^cz/(.+)$'] = "$1";
$route['^sl/(.+)$'] = "$1";
 
// '/en' and '/fr' -> use default controller
$route['^me$'] = $route['default_controller'];
$route['^ru$'] = $route['default_controller'];
$route['^en$'] = $route['default_controller'];
$route['^de$'] = $route['default_controller'];
$route['^cz$'] = $route['default_controller'];
$route['^sl$'] = $route['default_controller'];


/* End of file routes.php */
/* Location: ./application/config/routes.php */